package com.hnx.admin.api.security.core;

public interface SecurityPropertyAPI {
    public final static String PREFIX = "admin.security";
    public final static String REMEMBER_ME = "rememberMe";
    public final static String PROCESS_URL = "/login";
    public final static String LOGOUT = "/logout";
    public final static String USERNAME = "username";
    public final static Integer MAXIMUM = 1;
    public final static String PASSWORD = "password";
    public final static String CAPTCHA = "captcha";
    public final static String UUID = "uuid";
    public final static Integer MAX_NUM = 2;
    public final static String[] ALLOWED_METHODS = {"GET", "POST", "PUT", "DELETE", "OPTIONS"};
    public final static String[] ALLOWED_HEADERS = {"Content-Type", "token", "X-Requested-With"};
    public final static String[] ALLOWED_ORIGINS = {"*"};
    /**
     * 登录账户密码错误次数 redis key
     */
    public static final String PWD_ERR_CNT_KEY = "pwd_err_cnt:";
    public static final String LOGIN_REQUEST_EMPTY = "登录请求参数不能为空";
    public static final String USER_EMPTY = "用户信息不存在";
    public final static Integer DEFAULT_MAX_RETRY_COUNT = 5;
    public final static Integer DEFAULT_LOCK_TIME = 10;
    public final static String USER_EMPTY_ERROR = "用户名不能为空";
    public final static String PASSWORD_EMPTY_ERROR = "密码不能为空";
    public final static String LOGIN_UUID_NONE = "登录请求标识不能为空";
    public final static String LOGIN_CAPTCHA_NONE = "验证码不能为空";
    public static final String CAPTCHA_EXPIRER = "验证码已过期";
    public static final String CAPTCHA_BAD = "验证码输入不正确";
    public static final String RETRY_ERROR_COUNT = "超过登录错误次数，请等后再试";
    public static final String NO_CAPTCHA_API = "没有在IOC空器中找到验证码接口实现类";
    public final static String NO_IP = "当前IP已被限制无法访问，请联系管理员";


}


